package online.sixfish.question.service;

import online.sixfish.common.dto.PageDTO;
import online.sixfish.question.model.entity.QueProgram;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.multipart.MultipartFile;

import java.io.IOException;

public interface QueProgramService {
    PageDTO<QueProgram> list(Integer pageNum, Integer pageSize,  Integer difficulty,
                              Integer userQueStatus);

    QueProgram getById(Integer id);

    Integer getTotal();

    void upload(MultipartFile file) throws IOException;

    PageDTO<QueProgram> select(Integer difficulty, Integer sortType, String name, Integer pageNum, Integer pageSize);

    void delete(Integer id);
}
